package com.zhiche.lisa.oms.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 各类地址信息
 * </p>
 *
 * @author qichao
 * @since 2018-06-24
 */
@TableName("lisa_location")
public class Location extends Model<Location> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 地址类型ID
     */
	@TableField("type_id")
	private Long typeId;
    /**
     * 地址详情
     */
	private String value;
    /**
     * 系统显示值
     */
	private String label;
    /**
     * 行政区划编码
     */
	@TableField("ad_code")
	private String adCode;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getAdCode() {
		return adCode;
	}

	public void setAdCode(String adCode) {
		this.adCode = adCode;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Location{" +
			", id=" + id +
			", typeId=" + typeId +
			", value=" + value +
			", label=" + label +
			", adCode=" + adCode +
			", tenantId=" + tenantId +
			"}";
	}
}
